<?php
    session_start();
    $_SESSION['lang'] = strtolower(trim($_POST['lang']));
    echo 'success';
?>